package com.book.mapper;

import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.book.entity.Role;
import org.springframework.stereotype.Repository;

@Repository
public interface RoleMapper extends BaseMapper<Role> {
	List<Role> findByusername(String username);

	Role findByRoleName(String rolename);

	void addUser(Map<String,Object> params);

	void removeUserFromAdmin(String uid);
}
